<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');

$this->load->helper('html');
$username = $this->session->userdata('username'); ?>

<div> <!--This is the first division of left-->
  <div id="firstpane" class="menu_list"> <!--Code for menu starts here-->
	<p class="menu_head"><?= anchor(site_url('welcome'),'Halaman Utama'); ?></p>

	<p class="menu_head">Helpdesk</p>
		<div class="menu_body" align="left">
            <?php echo anchor(site_url('helpdesk/daftar/all'),img(array('src'=>'images/main/28.png','border'=>'0','alt'=>'')).' Daftar Helpdesk','Daftar Helpdesk'); ?>            
            <?php if ($this->session->userdata('jenis') == 'A') {
            	echo anchor(site_url('helpdesk/daftar/personal/'.$username),img(array('src'=>'images/main/28.png','border'=>'0','alt'=>'')).' Daftar Job Personal','Daftar Job Personal');
            }?>
            <?= anchor(site_url('data_rekap'),img(array('src'=>'images/main/dir.png','border'=>'0','alt'=>'')).' Rekap Helpdesk','Menampilkan Rekap Helpdesk'); ?>           
        </div>

    <?php if ($this->session->userdata('jenis') == 'A'){ ?>

	<p class="menu_head">Data Master</p>
		<div class="menu_body" align="left">
            <?= anchor(site_url('kategori'),img(array('src'=>'images/main/28.png','border'=>'0','alt'=>'')).' Daftar Jenis','Menampilkan halaman Daftar Jenis Permasalahan'); ?>
            <?= anchor(site_url('user_man'),img(array('src'=>'images/main/28.png','border'=>'0','alt'=>'')).' Daftar User','Menampilkan halaman Daftar User'); ?>
		</div>
	<?php }?>

	<p class="menu_head">User Menu</p>
	     <div class="menu_body" align="left" style="overflow:auto;">
		 <?= anchor(site_url('welcome/logout'),img(array('src'=>'images/main/logout.png','border'=>'0','alt'=>'')).' Keluar',''); ?>
	    </div>   

  </div>  <!--Code for menu ends here-->
</div>
